Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Frame Manipulation Functions /


JMFrameKey

Dispatches a key-down event to a frame.

OSStatus JMFrameKey (JMFrameRef frame,
                     char asciiChar,
                     char keyCode,
                     short modifiers);
frame
The frame in which the key-down event occurred.
asciiChar
The ASCII character being typed.
keyCode
The machine key code being typed.
modifiers
Any keyboard modifiers from the EventRecord data structure. You can determine the ASCII character (and corresponding machine key code) from EventRecord.message. For more information about EventRecord, see Inside Macintosh: Macintosh Toolbox Essentials.
function result
A result code. See "JManager Result Codes" (page 108) for a list of result codes that JManager may return in this field.
DISCUSSION
The client application must keep track of the currently active frame.

SEE ALSO
"Keyboard Events" (page 27).

The JMFrameKeyRelease function (page 87).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
23 APR 1997